package org.zhangsh.spring.aware;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

/**
 * </p>
 *
 * @author zhangsh
 * @version 1.0.0
 * @since 2019-03-27
 */
@Component
public class DemoBeanNameAware implements BeanNameAware {

    public DemoBeanNameAware(){
        System.out.println("我是BeanNameAware init...");
    }

    @Override
    public void setBeanName(String name) {
        System.out.println("BeanNameAware(setBeanName)方法实例化...");

    }
}
